package com.zorn.platform.user.action;

import com.zorn.core.provider.ActionSupportProvider;
import com.zorn.platform.user.service.IUserRoleService;

public class UserRoleAction extends ActionSupportProvider {

	/* Fields
	================================================== */
	private IUserRoleService userRoleService;

	/* Methods
	================================================== */
	public String query() {
		userRoleService.query(getParameterMap());

		setJSONObject(userRoleService.getResult());

		return JSON_RESULT;
	}

	public String count() {
		userRoleService.count(getParameterMap());

		setJSONObject(userRoleService.getResult());

		return JSON_RESULT;
	}

	public String insert() {
		userRoleService.insert(getParameterMap());

		setJSONObject(userRoleService.getResult());

		return JSON_RESULT;
	}

	public String update() {
		userRoleService.update(getParameterMap());

		setJSONObject(userRoleService.getResult());

		return JSON_RESULT;
	}

	public String delete() {
		userRoleService.delete(getParameterMap());

		setJSONObject(userRoleService.getResult());

		return JSON_RESULT;
	}

	/* Getters & Setters
	================================================== */
	public void setUserRoleService(IUserRoleService userRoleService) {
		this.userRoleService = userRoleService;
	}

}